class NadeStunW extends NadeW;

simulated function Explode(vector HitLocation, vector HitNormal)
{
	Local Actor A;
	Local KFMonster K;
	local NadeStunWProj p;
	
	if(bHasExploded)
		return;
		
	bHasExploded=True;
	//Log("Exloded");
	if (ROLE == ROLE_Authority)
	{
		foreach CollidingActors (class 'Actor', A, DamageRadius, HitLocation)
		{
			if (KFMonster(A) != None && ExtendedZCollision(A) == none)
			{
				K = KFMonster(A);
				p = Instigator.Spawn(Class'NadeStunWProj', instigator,, Location, K.Rotation);
				p.Stick(K,K.Location);
			}
		}
	}
		
	//PlaySound(sound'PatchSounds.StunNadeBoomSound',,100.5*TransientSoundVolume);
	PlaySound(ExplodeSounds[rand(ExplodeSounds.length)],,100.5*TransientSoundVolume);
	if ( EffectIsRelevant(Location,false) )
	{
		Spawn(class'NadeWExplosionEmitter',,,HitLocation + HitNormal*20,rotator(HitNormal));
		Spawn(class'NadeStunWFlash',,,HitLocation + HitNormal*20,rotator(HitNormal));
	}

	BlowUp(HitLocation);
	Destroy();
}

defaultproperties
{
     DrawScale=1.100000
}
